package com.lancoo.znbkxx.teacher.model.data

import com.chad.library.adapter.base.entity.MultiItemEntity

data class HardSolution(
        val FinishedList: MutableList<Finished>,
        val TypeList: MutableList<Type>,
        val UnFinishedList: MutableList<Finished>,
        val HardQueFlag: Int
)

data class Type(
        val AvgScoreRate: Double,
        val Count: Int,
        val EvalState: Int,
        val GenreID: String,
        val GenreName: String,
        val TypeName: String,
        val TypeNo: String
)

data class Finished(
        var isShow : Boolean,
        var Finished: Boolean,
        val Duration: String,
        val EvalState: Int,
        val FailedCount: Int,
        val GenreID: String,
        val GenreName: String,
        val IsNew: Int,
        val PaperID: String,
        val PaperName: String,
        val PassedCount: Int,
        val QuesID: String,
        val ReadCount: Int,
        val ScoreRate: Double,
        val SetID: String,
        val SetName: String,
        val TypeName: String,
        val TypeNo: String,
        val UpdateTime: String
) : MultiItemEntity {
    override fun getItemType(): Int {
        return when (Finished) {
            false -> 0
            true -> 1
        }
    }

}
